<template>
	<div>
		<el-form label-width="100px">
            <el-form-item label="资质颁发单位">
                <el-select v-model="form.addBuildInfo.unit" placeholder="请选择">
                    <el-option v-for="item in initData.unit" :label="item.name" :value="item.id" :key="item.id">
                    </el-option>
                </el-select>
            </el-form-item>
            <el-form-item label="资质等级">
                <el-input placeholder="请输入内容" v-model="form.addBuildInfo.level">
                    <el-select v-model="initData.level" slot="prepend" placeholder="请选择" style="width:110px">
                        <el-option label="餐厅名" value="1"></el-option>
                        <el-option label="订单号" value="2"></el-option>
                        <el-option label="用户电话" value="3"></el-option>
                        <el-option label="其他" value="-1"></el-option>
                    </el-select>
                </el-input>
            </el-form-item>
            <el-form-item label="收费标准" prop="fee">
                <el-input v-model="form.addBuildInfo.fee"></el-input>
            </el-form-item>
            <el-form-item label="专业领域" prop="domain">
                <el-input v-model="form.addBuildInfo.domain"></el-input>
            </el-form-item>
            <el-form-item label="技术团队资源" prop="tech">
                <el-input v-model="form.addBuildInfo.tech"></el-input>
            </el-form-item>
            <el-form-item label="主营业务" prop="business">
                <el-input v-model="form.addBuildInfo.business"></el-input>
            </el-form-item>
            <el-form-item label="业务区域" prop="area">
                <el-select v-model="form.addBuildInfo.area" multiple placeholder="请选择" style="width:100%">
                    <el-option v-for="item in initData.area" :key="item.value" :label="item.label" :value="item.value">
                    </el-option>
                </el-select>
            </el-form-item>
            <el-form-item label="施工担保方式">
                <el-checkbox-group v-model="form.addBuildInfo.method">
                    <el-checkbox v-for="item in initData.method" :label="item.label" :key="item.value">{{item.label}}</el-checkbox>
                </el-checkbox-group>
            </el-form-item>
            <el-form-item label="特殊能力">
                <el-checkbox-group v-model="form.addBuildInfo.energy">
                    <el-checkbox v-for="item in initData.energy" :label="item.label" :key="item.value">{{item.label}}</el-checkbox>
                </el-checkbox-group>
            </el-form-item>
        </el-form>
	</div>
</template>

<script>

export default{
	data(){
		return{
			form:{
				addBuildInfo:{
					unit:'',
					level:'',
					fee:'',
					domain:'',
					tech:'',
					business:'',
					area:[],
					method:[],
					energy:[],
				}
			},
			initData:{
				unit:[],
				level:[],
				area:[],
				method:[],
				energy:[]
			}
		}
	}
}	
</script>